package com.atguigu.gulimall.ware.service;

import com.atguigu.gulimall.ware.vo.MergeVo;
import com.atguigu.gulimall.ware.vo.PurchaseFinishVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.gulimall.common.utils.PageUtils;
import com.atguigu.gulimall.ware.entity.WmsPurchaseEntity;

import java.util.List;
import java.util.Map;

/**
 * 采购信息
 *
 * @author yangshen
 * @email yangshen@gmail.com
 * @date 2020-05-26 15:33:03
 */
public interface WmsPurchaseService extends IService<WmsPurchaseEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPageUnreceive(Map<String, Object> params);

    /**
     * 合并采购单明细
     * @param mergeVo
     */
    void mergePurchase(MergeVo mergeVo);

    /**
     * 采购人员领取采购单
     * @param ids 采购单Id
     * @return
     */
    void received(List<Long> ids);

    /**
     * 采购人员完成确认采购单
     * @param purchaseFinishVo 采购单入参实体
     * @return
     */
    void finish(PurchaseFinishVo purchaseFinishVo);

}

